package com.sdkj.dspservice.modules.sys.service.impl;

import com.sdkj.dspservice.common.base.service.impl.CrudServiceImpl;
import com.sdkj.dspservice.modules.sys.dao.AnnexDao;
import com.sdkj.dspservice.modules.sys.entity.Annex;
import com.sdkj.dspservice.modules.sys.service.AnnexService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 附件service实现类
 *
 * @author tm
 * @version 2020/11/23 18:09
 */
@Service
@Transactional(readOnly = true)
public class AnnexServiceImpl extends CrudServiceImpl<AnnexDao, Annex> implements AnnexService {

    @Override
    @Transactional(readOnly = false)
    public List<Annex> listByIds(String ids) {
        return listByIds(ids.split(","));
    }

    @Override
    @Transactional(readOnly = false)
    public List<Annex> listByIds(String[] ids) {
        return dao.listByIds(ids);
    }
}
